home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Technical Documentation / Sample Code / DTS.Lib & Samples / DTS.Lib / DTS.Lib.headers / DTS.Lib2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-22  |  910 b   |  54 lines  |  [TEXT/MPS ]

  1. #ifndef __L2DTS__
  2. #define __L2DTS__
  3.  
  4. #include "DTS.Lib.h"
  5.  
  6. #ifndef __LISTCONTROL__
  7. #include "ListControl.h"
  8. #endif
  9.  
  10. #ifndef __TEXTEDITCONTROL__
  11. #include "TextEditControl.h"
  12. #endif
  13.  
  14. #ifndef __TYPES__
  15. #include <Types.h>
  16. #endif
  17.  
  18. #ifndef __TREEOBJ__
  19. #include "TreeObj.h"
  20. #endif
  21.  
  22. typedef struct {
  23.     DocHeaderInfo    fhInfo;
  24.     TreeObjHndl        root;            /***** End of application framework file info. *****/
  25. } TheDoc;
  26.  
  27. typedef struct {
  28.     DocHeaderInfo    fhInfo;
  29.     TreeObjHndl        root;            /***** Start of custom file info. *****/
  30.     TEHandle        dump;
  31.     TEHandle        display;
  32.     ListHandle        plist;
  33.     ListHandle        clist;
  34.     ControlHandle    newView;
  35. } ViewDoc;
  36.  
  37. typedef struct FileRec {
  38.     FileStateRec    fileState;
  39.     ConnectRec        connect;
  40.     union {
  41.         TheDoc    doc;
  42.         ViewDoc    vh;
  43.     } d;
  44. } FileRec;
  45.  
  46. typedef struct {
  47.     TreeObjHndl    undo;
  48.     FileRecHndl    frHndl;
  49. } RootObj;
  50.  
  51. #define mDerefRoot(hndl)     ((RootObj*)(((char*)(*(hndl)))+sizeof(TreeObj)))
  52.  
  53. #endif __L2DTS__
  54.